package com.example.aesdemo.entity;

import lombok.Data;

@Data
public class ResultData<T> {
    private Integer code;
    private String message;
    private T data;

    public static ResultData success(Object data){
        ResultData r = new ResultData<>();
        r.code=0;
        r.message = "请求成功！";
        r.data = data;
        return r;
    }
}
